from web_server_function.CourseServer import course_server
from web_server_function.ServerUtils import server_utils
from utils.ReadUtil import read_util


def hhtest(customer_service_name, orders_no, want_courses):
    server_utils.login_background(read_util.read_data()['后台账号密码'][f'{customer_service_name}账号'],
                                  read_util.read_data()['后台账号密码'][f'{customer_service_name}密码'])

    # 添加换课申请
    print(course_server.courseChange_addUpdate(orders_no, want_courses))
    # 审核换课申请
    course_server.peopleAudit_courseChange(orders_no)


if __name__ == '__main__':
    hhtest('chenzeyin03', 'T1438046129622', '必修一-化学物质及其变化')
